/*
 * An XML document type.
 * Localname: ConfigurationSet
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.ConfigurationSetDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one ConfigurationSet(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class ConfigurationSetDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.ConfigurationSetDocument
{
    
    public ConfigurationSetDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CONFIGURATIONSET$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "ConfigurationSet");
    
    
    /**
     * Gets the "ConfigurationSet" element
     */
    public org.apache.xmlbeans.XmlObject getConfigurationSet()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(CONFIGURATIONSET$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ConfigurationSet" element
     */
    public void setConfigurationSet(org.apache.xmlbeans.XmlObject configurationSet)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(CONFIGURATIONSET$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(CONFIGURATIONSET$0);
            }
            target.set(configurationSet);
        }
    }
    
    /**
     * Appends and returns a new empty "ConfigurationSet" element
     */
    public org.apache.xmlbeans.XmlObject addNewConfigurationSet()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(CONFIGURATIONSET$0);
            return target;
        }
    }
}
